<?php
class Model_ExpertsDomain extends Model_Category {

	function __construct(){
		parent::__construct();
	}

	function getOptionGroup(){
		$ret = array();
		$tree = $this->getTree(-1);
		$data = $this->getData();
		foreach ($tree as $aKey => $aTree){
			$name = $data[$aKey]['name'];
			foreach ($aTree as $bKey => $bTree){
				$ret[$name][$bKey] = $data[$bKey]['name'];
			}
		}
		return $ret;
	}
	
	function getOption(){
		return $this->getChildren(-1,false,true,'option');
	}
	function getHash(){
		return $this->getChildren(-1,false,true,'hash');
	}	
}
?>